package lang;

import java.util.Date;

import gagazhn.console.actions.Action;

public class GetTimeAction extends Action{
	
	@Override
	public void doAct(String[] args) {
		printTimeInfo();
	}

	public static void printTimeInfo() {
		long time = (new Date().getTime() - Main.SYSTEM_TIME) / 1000;
		long hour = time / 60 / 60;
		long min = (time / 60) % 60; 
		
		System.out.println("在线时间: " + hour + " 时 " + min + "分.");
	}
}
